﻿@using EasyUIMvc
@using EasyUIMvc.Samples.App_Start
@{
    ViewBag.Title = "Accordion";
}

<h2>Accordion</h2>
@Html.EasyUI().Accordion(settings =>
                      {
                          settings.Id = "Accordion";
                          settings.Titles = new[] {"Home","News","Product","About","Help" };
                          settings.AccordionIcon = new[]
                                                      {
                                                          EnumHelper.GetEnumDescription(EnumHelper.IconEnum.IconOk),
                                                          EnumHelper.GetEnumDescription(EnumHelper.IconEnum.IconSearch),
                                                          EnumHelper.GetEnumDescription(EnumHelper.IconEnum.IconOk),
                                                          EnumHelper.GetEnumDescription(EnumHelper.IconEnum.IconOk),
                                                          EnumHelper.GetEnumDescription(EnumHelper.IconEnum.IconSearch),
                                                          EnumHelper.GetEnumDescription(EnumHelper.IconEnum.IconOk),
                                                      };
                          settings.InnerStyle = new[] { "overflow:auto;padding:10px;", "padding:10px;", "padding:10px;", "padding:10px;", "padding:10px;" };
                          settings.Style = "width:500px;height:300px;";
                      }).GetHtml()